<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8">
    <title>LinkedChat招聘网</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/public/static/css/PersonCenter.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/public/static/css/Headers.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/public/static/css/Footers.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/public/static/css/MessagePush.css">
    <script src="${pageContext.request.contextPath}/public/static/js/jquery-3.6.0.min.js"></script>
    <script src="${pageContext.request.contextPath}/public/static/layui/layui.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/public/static/layui/css/layui.css">
    <link href="${pageContext.request.contextPath}/public/static/images/login_icon.ico" rel="shortcut icon">

</head>
<body>
<!--============================头部==================================-->
<div id="header"></div>
<script>
    $(function() {
        $('#header').load('${pageContext.request.contextPath}/public/Person/header.jsp');
    })
</script>
<!--============================搜索==================================-->
<div class="waikuang">
    <form action="">
        <div class="search-form-con">
            <div class="position-sel">
                <select name="position">`
                    <option value="">不限</option>
                    <option value="Java">Java</option>
                    <option value="C++">C++</option>
                    <option value="Python">Python</option>
                </select>
            </div>
            <div class="ipt-wrap">
                <input type="text" placeholder="搜索职位、公司">
            </div>
            <div class="btn-search">
                <input type="submit" value="搜索">
            </div>
        </div>
    </form>

    <div class="main_body">
        <div class="job-tap">
            <span class="job-current">收藏的职位</span>
        </div>
        <div class="user_interface">
            <!--======================收藏的职位==================================-->

            <!--======================职位详情==================================-->
            <%--            <div class="job-list">--%>
            <%--                <ul>--%>
            <%--                    <li>--%>
            <%--                        <a href="">--%>
            <%--                            <div class="job-primary">--%>
            <%--                                <!--左边-->--%>
            <%--                                <div class="list-style-type">--%>
            <%--                                    <h3><a href="">JAVA软件开发工程师[苏州工业园区]</a></h3>--%>
            <%--                                </div>--%>
            <%--                                <div class="append">--%>
            <%--                                    <span class="red">4K-6K</span>--%>
            <%--                                    <span class="grade">本科</span>--%>
            <%--                                    <div class="info-publis">--%>
            <%--                                        <!--                                    <img src="">-->--%>
            <%--                                        <span>张女士</span>--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                                <div class="info-company">--%>
            <%--                                    <div class="list-style-type">--%>
            <%--                                        <h3><a href="">神州数码</a></h3>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="job-inf">--%>
            <%--                                        <span>计算机软件</span>--%>
            <%--                                        <span>已上市</span>--%>
            <%--                                        <span>1000-9999人</span>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="company-pic">--%>
            <%--                                        <!--                                    <img src="" alt="">-->--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                            </div>--%>
            <%--                            <div class="info-append">--%>
            <%--                                <div class="tags">--%>
            <%--                                    <span>SQL</span>--%>
            <%--                                    <span>CSS</span>--%>
            <%--                                    <div class="info-desc">--%>
            <%--                                        餐补，节日福利，补充医疗保险，交通补助，定期体检,...--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>

            <%--                            </div>--%>
            <%--                        </a>--%>
            <%--                    </li>--%>
            <%--                </ul>--%>

            <%--            </div>--%>
            <%--            <br>--%>
            <%--            <div class="job-list">--%>
            <%--                <ul>--%>
            <%--                    <li>--%>
            <%--                        <a href="">--%>
            <%--                            <div class="job-primary">--%>
            <%--                                <!--左边-->--%>
            <%--                                <div class="list-style-type">--%>
            <%--                                    <h3><a href="">JAVA软件开发工程师[苏州工业园区]</a></h3>--%>
            <%--                                </div>--%>
            <%--                                <div class="append">--%>
            <%--                                    <span class="red">4K-6K</span>--%>
            <%--                                    <span class="grade">本科</span>--%>
            <%--                                    <div class="info-publis">--%>
            <%--                                        <!--                                    <img src="">-->--%>
            <%--                                        <span>张女士</span>--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                                <!--右边-->--%>
            <%--                                <div class="info-company">--%>
            <%--                                    <div class="list-style-type">--%>
            <%--                                        <h3><a href="">神州数码</a></h3>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="job-inf">--%>
            <%--                                        <span>计算机软件</span>--%>
            <%--                                        <span>已上市</span>--%>
            <%--                                        <span>1000-9999人</span>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="company-pic">--%>
            <%--                                        <!--                                    <img src="" alt="">-->--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                            </div>--%>
            <%--                            <div class="info-append">--%>
            <%--                                <div class="tags">--%>
            <%--                                    <span>SQL</span>--%>
            <%--                                    <span>CSS</span>--%>
            <%--                                    <div class="info-desc">--%>
            <%--                                        餐补，节日福利，补充医疗保险，交通补助，定期体检,...--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                            </div>--%>
            <%--                        </a>--%>
            <%--                    </li>--%>
            <%--                </ul>--%>
            <%--            </div>--%>
            <%--            <br>--%>
            <%--            <div class="job-list">--%>
            <%--                <ul>--%>
            <%--                    <li>--%>
            <%--                        <a href="">--%>
            <%--                            <div class="job-primary">--%>
            <%--                                <!--左边-->--%>
            <%--                                <div class="list-style-type">--%>
            <%--                                    <h3><a href="">JAVA软件开发工程师[苏州工业园区]</a></h3>--%>
            <%--                                </div>--%>
            <%--                                <div class="append">--%>
            <%--                                    <span class="red">4K-6K</span>--%>
            <%--                                    <span class="grade">本科</span>--%>
            <%--                                    <div class="info-publis">--%>
            <%--                                        <!--                                    <img src="">-->--%>
            <%--                                        <span>张女士</span>--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                                <!--右边-->--%>
            <%--                                <div class="info-company">--%>
            <%--                                    <div class="list-style-type">--%>
            <%--                                        <h3><a href="">神州数码</a></h3>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="job-inf">--%>
            <%--                                        <span>计算机软件</span>--%>
            <%--                                        <span>已上市</span>--%>
            <%--                                        <span>1000-9999人</span>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="company-pic">--%>
            <%--                                        <!--                                    <img src="" alt="">-->--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                            </div>--%>
            <%--                            <div class="info-append">--%>
            <%--                                <div class="tags">--%>
            <%--                                    <span>SQL</span>--%>
            <%--                                    <span>CSS</span>--%>
            <%--                                    <div class="info-desc">--%>
            <%--                                        餐补，节日福利，补充医疗保险，交通补助，定期体检,...--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>

            <%--                            </div>--%>
            <%--                        </a>--%>
            <%--                    </li>--%>
            <%--                </ul>--%>
            <%--            </div>--%>
            <%--            <br>--%>
            <%--            <div class="job-list">--%>
            <%--                <ul>--%>
            <%--                    <li>--%>
            <%--                        <a href="">--%>
            <%--                            <div class="job-primary">--%>
            <%--                                <!--左边-->--%>
            <%--                                <div class="list-style-type">--%>
            <%--                                    <h3><a href="">JAVA软件开发工程师[苏州工业园区]</a></h3>--%>
            <%--                                </div>--%>
            <%--                                <div class="append">--%>
            <%--                                    <span class="red">4K-6K</span>--%>
            <%--                                    <span class="grade">本科</span>--%>
            <%--                                    <div class="info-publis">--%>
            <%--                                        <!--                                    <img src="">-->--%>
            <%--                                        <span>张女士</span>--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                                <!--右边-->--%>
            <%--                                <div class="info-company">--%>
            <%--                                    <div class="list-style-type">--%>
            <%--                                        <h3><a href="">神州数码</a></h3>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="job-inf">--%>
            <%--                                        <span>计算机软件</span>--%>
            <%--                                        <span>已上市</span>--%>
            <%--                                        <span>1000-9999人</span>--%>
            <%--                                    </div>--%>
            <%--                                    <div class="company-pic">--%>
            <%--                                        <!--                                    <img src="" alt="">-->--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>
            <%--                            </div>--%>
            <%--                            <div class="info-append">--%>
            <%--                                <div class="tags">--%>
            <%--                                    <span>SQL</span>--%>
            <%--                                    <span>CSS</span>--%>
            <%--                                    <div class="info-desc">--%>
            <%--                                        餐补，节日福利，补充医疗保险，交通补助，定期体检,...--%>
            <%--                                    </div>--%>
            <%--                                </div>--%>

            <%--                            </div>--%>
            <%--                        </a>--%>
            <%--                    </li>--%>
            <%--                </ul>--%>
            <%--            </div>--%>
        </div>
        <div class="user_sider">
            <div class="userinfo_box">
                <a  class="edit_userinfo" type="desktop" id="bbtnn" >
                    编辑
                </a>
                <div class="container">
                    <div class="headbox">
                        <img src="https://img.bosszhipin.com/boss/avatar/avatar_14.png">
                    </div>
                    <div class="content">
                        <%--                        <div class="username">--%>
                        <%--                            <span class="username" id="personName"></span>--%>
                        <%--                        </div>--%>
                        <%--                        <div class="userinfo" id="personAge">--%>

                        <%--                            <i class="vline" id="personGender"></i>--%>

                        <%--                            <i class="vline"></i>--%>
                        <%--                            本科--%>
                        <%--                        </div>--%>
                    </div>
                </div>
                <div class="now_state">
                    <div class="ui_select" style="width: 100%">
                        <div class="ui_select_selection">
                            <input type="hidden" value="1">
                            <%--                            <div class="ui_select_inner">--%>
                            <%--                                <span class="ui_select_selected_value">在校-不考虑</span>--%>
                            <%--                                <i class="ui_icon"></i>--%>
                            <%--                            </div>--%>
                        </div>
                        <div class="ui_select_dropdown" style="width: 244px; display: none">
                            <ul class="ui_dropdown_list">
                                <li class="ui_select_item">离校-随时到岗</li>
                                <li class="ui_select_item">在校-暂不考虑</li>
                                <li class="ui_select_item">在校-考虑机会</li>
                                <li class="ui_select_item">在校-月内到岗</li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="user_stat">
                    <%--                    <a href="#" class="router_link_action">--%>
                    <%--                        <b>3</b>--%>
                    <%--                        沟通过--%>
                    <%--                    </a>--%>
                    <%--                    <a href="#" class="router_link_action">--%>
                    <%--                        <b>0</b>--%>
                    <%--                        已投递--%>
                    <%--                    </a>--%>
                    <%--                    <a href="#" class="router_link_action">--%>
                    <%--                        <b>0</b>--%>
                    <%--                        面试--%>
                    <%--                    </a>--%>
                    <%--                    <a href="#" class="router_link_action">--%>
                    <%--                        <b>0</b>--%>
                    <%--                        感兴趣--%>
                    <%--                    </a>--%>
                </div>
            </div>

            <div class="sider_resume">
                <div class="resume_attachment">
                    <h3 class="sider_itle">
                        附件管理
                    </h3>
                    <div class="btns">
                        <button type="button" class="layui-btn btn_primary" id="test3">
                            上传附件简历
                        </button>

                        <button class="btn_online">
                            制作附件简历
                        </button>
                    </div>
                </div>
                <div class="resume_online">
                    <h3 class="title">
                        在线简历
                        <a href="${pageContext.request.contextPath}/public/Person/CVManage.jsp" class="edit">编辑</a>
                    </h3>
                </div>
            </div>
        </div>

    </div>
</div>
<div id="demo2" class="demo2" style="margin-left: 40%"></div>
<!--底部-->
<div id ="footer">
    <div class="footer_i">
        <div class="footer_i_left">
            <p>
                <span>Copyright  2022 LinkedChat</span>
                <span>京ICP备14013441号-5</span>
                <span>京ICP证150923号</span>
                <span>京网文[2020]0399-066 号</span>
                <span>
                 <img src="https://static.zhipin.com/v2/web/geek/images/icon-badge-1.png">电子营业执照
              </span>
                <span>
                  <img src="https://static.zhipin.com/v2/web/geek/images/icon-beian.png"> 京公网安备11010502032801
              </span>
                <span>朝阳网警</span>
                <span>人力资源服务许可证</span>
                <span>网上有害信息举报专区</span>
                <span>朝阳区人社局监督电话</span>
            </p>
        </div>
        <div class="footer_i_right">
            <a href="#" class="icon_weibo"><span></span></a>
            <a href="#" class="icon-weixin"><span></span></a>
            <a href="#" class="icon-app"><span></span></a>
            <a href="#" class="icon-client-app">
                <img src="https://img.bosszhipin.com/static/file/2021/dppx09luaq1637052502211.png" class="icon_im">
                <span></span></a>
        </div>
    </div>
</div>


<script src="../static/js/Information.js"></script>
<script>
    //上传PDF简历
    layui.use(['upload','element','layer'],function (){
        var $=layui.jquery
            ,upload =layui.upload
            ,element =layui.element
            ,layer =layui.layer;

        upload.render({
            elem: '#test3'
            ,url: '${pageContext.request.contextPath}/uploads'
            ,accept: 'file'
            ,done:function (res) {
                if(res.fileUrl !=null){
                    alert("简历上传成功");
                    //获得文件的路径
                    let fileUrl =res.fileUrl;
                    console.log("上传测文件地址"+fileUrl);
                }
            }
        })
    })

</script>
<script>

    var token =localStorage.getItem("token");
    $.ajax({
        type:"post",
        url:"${pageContext.request.contextPath}/getByPersonal",
        data:{token:token},
        success:function (result){
            var data=result.data
            var  personAge=data.personAge
            var  personName=data.personName
            var  personGender=data.personGender
            var  personBirthday=data.personBirthday
            var  personUsername=data.personUsername
            var  personPassword=data.personPassword
            var  personTel=data.personTel
            var  personJobStatus=data.personJobStatus
            sessionStorage.setItem("personName",personName)
            sessionStorage.setItem("personAge",personAge)
            sessionStorage.setItem("personGender",personGender)
            sessionStorage.setItem("personBirthday",personBirthday)
            sessionStorage.setItem("personUsername",personUsername)
            sessionStorage.setItem("personPassword",personPassword)
            sessionStorage.setItem("personTel",personTel)
            sessionStorage.setItem("personJobStatus",personJobStatus)



        }
    })
    showCollect();
    function showCollect(){
        var token=localStorage.getItem("token"); //拿到登陆后的token令牌
        console.log("获取的token值："+token)

        //右侧个人信息
        $.ajax({
            type:"post",
            url:"${pageContext.request.contextPath}/getByPersonal", //与IndexController的 testIndex方法实现前后端数据交互
            data:{token:token},
            success:function (result){  //成功返回success
                console.log(result);
                var data = result.data;
                var loginUser = data;
                // console.log(loginUser);
                //定义属性
                var personName = result.data.personName
                var personAge = result.data.personAge
                var personGender = result.data.personGender
                var personJobStatus =result.data.personJobStatus
                var liEle=  '<div class="username">'+
                    '<span class="username">'+personName+'</span>'+
                    '</div>'+
                    '<div class="userinfo" id="personAge">'+
                    personAge+
                    '<i class="vline" id="personGender"></i>'+
                    personGender+
                    '<i class="vline"></i>'+
                    '本科'
                    +'</div>'
                $(".content").append(liEle)
                var lie = '<div class="ui_select_inner">' +
                    '            <span class="ui_select_selected_value">'+personJobStatus+'</span>' +
                    '            <i class="ui_icon"></i>'+
                    '      </div>'
                $(".ui_select_selection").append(lie)
            },

        })

        <%--$.ajax({--%>
        <%--    type:"post",--%>
        <%--    url:'${pageContext.request.contextPath}/mycollect/getTotal',--%>
        <%--    data: {token:token},--%>

        <%--    success:function (result){--%>
        <%--        console.log(result)--%>
        <%--        var allnum =result.data;--%>
        <%--        console.log("allnum" +allnum) //总条数--%>
        <%--        var a='<a href="#" class="router_link_action">\n' +--%>
        <%--            '                        <b>'+allnum+'</b>\n' +--%>
        <%--            '                        收藏\n' +--%>
        <%--            '                    </a>\n' +--%>
        <%--            '                    <a href="#" class="router_link_action">\n' +--%>
        <%--            '                        <b>'+allnum+'</b>\n' +--%>
        <%--            '                        收藏\n' +--%>
        <%--            '                    </a>\n' +--%>
        <%--            '                    <a href="#" class="router_link_action">\n' +--%>
        <%--            '                        <b>'+allnum+'</b>\n' +--%>
        <%--            '                        收藏\n' +--%>
        <%--            '                    </a>\n' +--%>
        <%--            '                    <a href="#" class="router_link_action">\n' +--%>
        <%--            '                        <b>'+allnum+'</b>\n' +--%>
        <%--            '                        收藏\n' +--%>
        <%--            '                    </a>'--%>
        <%--        $(".user_stat").append(a)--%>
        <%--    }--%>
        <%--})--%>

        //收藏职位
        <%--$.ajax({--%>
        <%--    type: "post",--%>
        <%--    url: "${pageContext.request.contextPath}/mycollectAll",--%>
        <%--    headers:{'token':token},--%>
        <%--    success:function (result){--%>
        <%--        console.log(result);--%>
        <%--        var datas =result.data;--%>
        <%--        // var loginUser = datas;--%>
        <%--        for (var i=0;i<datas.length;i++){--%>
        <%--            var dataele =datas[i]--%>
        <%--            console.log(dataele)--%>
        <%--            var JobDetail =dataele['jobDetail']--%>
        <%--            var Mycollects =dataele['mycollects']--%>
        <%--            var companyDetail=dataele['companyDetail']--%>
        <%--            console.log(JobDetail)--%>
        <%--            console.log(Mycollects)--%>
        <%--            var jobId =JobDetail.jobId--%>
        <%--            var jobName =JobDetail.jobName--%>
        <%--            var jobTyge =JobDetail.jobTyge--%>
        <%--            var jobDegree =JobDetail.jobDegree--%>
        <%--            var jobLabel =JobDetail.jobLabel--%>
        <%--            var jobDescribe =JobDetail.jobDescribe--%>

        <%--            var jobLocProvince =JobDetail.jobLocProvince--%>
        <%--            var jobLocCity =JobDetail.jobLocCity--%>
        <%--            var jobLocArea =JobDetail.jobLocArea--%>
        <%--            var jobExperience =JobDetail.jobExperience--%>
        <%--            var jobMaxSalary = Math.floor(JobDetail.jobMaxSalary)--%>
        <%--            var jobMinSalary =Math.floor(JobDetail.jobMinSalary)--%>
        <%--            var jobLocArea =JobDetail.jobLocArea;--%>
        <%--            // var companyIndustry =companyDetail.companyIndustry--%>
        <%--            // var companyFinance =companyDetail.companyFinance--%>
        <%--            // var companyScale =companyDetail.companyScale--%>

        <%--            var companyName =companyDetail.companyName--%>
        <%--            var companyIndustry =companyDetail.companyIndustry--%>
        <%--            var companyFinance =companyDetail.companyFinance--%>
        <%--            var companyScale =companyDetail.companyScale--%>
        <%--            var url1="${pageContext.request.contextPath}/job/getById/"+jobId--%>
        <%--            var colleleEle ='            <div class="job-list">' +--%>
        <%--                '                <ul>' +--%>
        <%--                '                    <li>' +--%>
        <%--                '                        <a href="'+url1+'">' +--%>
        <%--                '                            <div class="job-primary">' +--%>
        <%--                '                                <!--左边-->' +--%>
        <%--                '                                <div class="list-style-type">' +--%>
        <%--                '                                    <h3>'+'<a href="'+url1+'"> '+jobName     +'['+jobLocCity+jobLocArea+']'+' </a>'+'</h3>'+--%>
        <%--                '                                </div>' +--%>
        <%--                '                                <div class="append">' +--%>
        <%--                '                                    <span class="red">'+jobMinSalary+'-'+jobMaxSalary+'</span>' +--%>
        <%--                '                                    <span class="grade">'+jobDegree+'</span>' +--%>
        <%--                '                                    <div class="info-publis">' +--%>
        <%--                '                                        <!--                                    <img src="">-->' +--%>
        <%--                '                                        <span>'+jobExperience+'</span>' +--%>
        <%--                '                                    </div>' +--%>
        <%--                '                                </div>' +--%>
        <%--                '                                <div class="info-company">' +--%>
        <%--                '                                    <div class="list-style-type">' +--%>
        <%--                '                                        <h3><a href="">'+companyName+'</a></h3>' +--%>
        <%--                '                                    </div>' +--%>
        <%--                '                                    <div class="job-inf">' +--%>
        <%--                '                                        <span>'+companyIndustry+'</span>' +--%>
        <%--                '                                        <span>'+companyFinance+'</span>' +--%>
        <%--                '                                        <span>'+companyScale+'</span>' +--%>
        <%--                '                                    </div>' +--%>
        <%--                '                                    <div class="company-pic">' +--%>
        <%--                '                                        <!--                                    <img src="" alt="">-->' +--%>
        <%--                '                                    </div>' +--%>
        <%--                '                                </div>' +--%>
        <%--                '                            </div>' +--%>
        <%--                '                            <div class="info-append">' +--%>
        <%--                '                                <div class="tags">' +--%>
        <%--                '                                    <span>'+jobLabel+'</span>' +--%>
        <%--                '                                    <span>'+jobLabel+'</span>' +--%>
        <%--                '                                    <div class="info-desc">' +--%>
        <%--                '                                        餐补，节日福利，补充医疗保险，交通补助，定期体检,...' +--%>
        <%--                '                                    </div>' +--%>
        <%--                '                                </div>' +--%>
        <%--                '                            </div>' +--%>
        <%--                '                        </a>' +--%>
        <%--                '                    </li>' +--%>
        <%--                '                </ul>' +--%>
        <%--                '            </div>'+--%>
        <%--                '            <br>'--%>
        <%--            $(".user_interface").append(colleleEle)--%>
        <%--        }--%>
        <%--    }--%>
        <%--})--%>
        load();
        function load(){$.ajax({
            type:"post",
            url:'${pageContext.request.contextPath}/mycollect/getTotal',
            data: {
                token:token

            },
            success:function (result) {
                console.log(result)
                var allnum =result.data;
                console.log("allnum" +allnum) //总条数
                //分页
                layui.use(['laypage', 'layer'], function(){
                    var laypage = layui.laypage
                        ,layer = layui.layer;
                    laypage.render({
                        elem: 'demo2'
                        ,count: allnum
                        ,limit: 5
                        ,theme: '#76f5e2'
                        ,jump: function(obj, first) {

                            //obj包含了当前分页的所有参数，比如：
                            console.log("当前页码：" + obj.curr); //得到当前页，以便向服务端请求对应页的数据。
                            console.log("每页显示的条数:"+obj.limit); //得到每页显示的条数
                            console.log("-----职位信息显现-----")
                            //分页查询
                            $.ajax({
                                type: "post",
                                url: "${pageContext.request.contextPath}/getByPagecollect/"+obj.curr,
                                data:{token:token},
                                headers:{'token':token},
                                success:function (result){
                                    console.log(result);
                                    var datas =result.data
                                    // var loginUser = datas;
                                    console.log("**********************************"+datas.pageNum)
                                    var num=datas.list.length
                                    console.log("+++++++++++++++++++"+num)
                                    $(".user_interface").html("")
                                    for (var i=0;i<datas.list.length;i++){
                                        var dataele =datas.list[i]
                                        console.log(dataele)
                                        var JobDetail =dataele.jobDetail
                                        var Mycollects =dataele.mycollects
                                        var companyDetail=dataele.companyDetail
                                        console.log(JobDetail)
                                        console.log(Mycollects)
                                        var jobId =JobDetail.jobId
                                        var jobName =JobDetail.jobName
                                        var jobTyge =JobDetail.jobTyge
                                        var jobDegree =JobDetail.jobDegree
                                        var jobLabel =JobDetail.jobLabel
                                        var jobDescribe =JobDetail.jobDescribe

                                        var jobLocProvince =JobDetail.jobLocProvince
                                        var jobLocCity =JobDetail.jobLocCity
                                        var jobLocArea =JobDetail.jobLocArea
                                        var jobExperience =JobDetail.jobExperience
                                        var jobMaxSalary = Math.floor(JobDetail.jobMaxSalary)
                                        var jobMinSalary =Math.floor(JobDetail.jobMinSalary)

                                        var companyName =companyDetail.companyName
                                        var companyIndustry =companyDetail.companyIndustry
                                        var companyFinance =companyDetail.companyFinance
                                        var companyScale =companyDetail.companyScale
                                        var url1="${pageContext.request.contextPath}/job/getById/"+jobId
                                        var colleleEle ='<div class="job-list">' +
                                            '                <ul>' +
                                            '                    <li>' +
                                            '                        <a href="'+url1+'">' +
                                            '                            <div class="job-primary">' +
                                            '                                <!--左边-->' +
                                            '                                <div class="list-style-type">' +
                                            '                                    <h3>'+'<a href="'+url1+'"> '+jobName+'['+jobLocCity+jobLocArea+']'+' </a>'+'</h3>'+
                                            '                                </div>' +
                                            '                                <div class="append">' +
                                            '                                    <span class="red">'+jobMinSalary+'-'+jobMaxSalary+'</span>' +
                                            '                                    <span class="grade">'+jobDegree+'</span>' +
                                            '                                    <div class="info-publis">' +
                                            '                                        <!--                                    <img src="">-->' +
                                            '                                        <span>'+jobExperience+'</span>' +
                                            '                                    </div>' +
                                            '                                </div>' +
                                            '                                <div class="info-company">' +
                                            '                                    <div class="list-style-type">' +
                                            '                                        <h3><a href="">'+companyName+'</a></h3>' +
                                            '                                    </div>' +
                                            '                                    <div class="job-inf">' +
                                            '                                        <span>'+companyIndustry+'</span>' +
                                            '                                        <span>'+companyFinance+'</span>' +
                                            '                                        <span>'+companyScale+'</span>' +
                                            '                                    </div>' +
                                            '                                    <div class="company-pic">' +
                                            '                                        <!--                                    <img src="" alt="">-->' +
                                            '                                    </div>' +
                                            '                                </div>' +
                                            '                            </div>' +
                                            '                            <div class="info-append">' +
                                            '                                <div class="tags">' +
                                            '                                    <span>'+jobLabel+'</span>' +
                                            // '                                    <span>'+jobLabel+'</span>' +
                                            '                                    <div class="info-desc">' +
                                            '                                        餐补，节日福利，补充医疗保险，交通补助，定期体检,...' +
                                            '                                    </div>' +
                                            '                                </div>' +
                                            '                            </div>' +
                                            '                        </a>' +
                                            '                    </li>' +
                                            '                </ul>' +
                                            '            </div>'+
                                            '            <br>'
                                        $(".user_interface").append(colleleEle)
                                    }
                                }
                            })
                        }
                    })

                })
            }

        })
        }


    }

</script>
</body>
</html>